package com.cipe.cmrs.util;

import org.hibernate.dialect.SQLServerDialect;
import org.hibernate.dialect.function.StandardSQLFunction;
import org.hibernate.type.StandardBasicTypes;

public class SQLServerCustomDialect extends SQLServerDialect {

	public SQLServerCustomDialect() {
		registerFunction( "replace", new StandardSQLFunction( "replace", StandardBasicTypes.STRING ) );
		registerFunction( "datepart", new StandardSQLFunction( "datepart", StandardBasicTypes.INTEGER ) );
	}
}
